package com.dragon.segment;

/**
 * @author dragon
 * @version V1.0.0-RELEASE
 * @date 2019/5/24 21:25
 */
public class Main {

    public static void main(String[] args) {
        Integer[] nums = {-2, 0, 3, -5, 2, -1};
        SegmentTree<Integer> segmentTree = new SegmentTree<>(nums, new Merger<Integer>() {
            @Override
            public Integer merge(Integer a, Integer b) {
                return a + b;
            }
        });

    }
}
